package com.huabo.audit.oracle.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Transient;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author huabo
 * @since 2021-10-28
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@TableName("TBL_CIRCULATION")
@ApiModel(value = "TblCirculation对象", description = "")
public class TblCirculation implements Serializable {

    //private static final long serialVersionUID = 1L;

    @Id
    @ApiModelProperty(value = "主键Id 自增")
    @TableId("CYID")
    private BigDecimal cyid;

    @ApiModelProperty(value = "编号")
    @TableField("CYCODE")
    private String cycode;

    @ApiModelProperty(value = "名称")
    @TableField("CYNAME")
    private String cyname;

    @ApiModelProperty(value = "发布时间")
    @TableField("CYDATE")
    @JSONField(format = "yyyy-MM-dd")
    private Date cydate;

    @ApiModelProperty(value = "标记状态")
    @TableField("CYSTATE")
    private String cystate;

    @ApiModelProperty(value = "类型")
    @TableField("CYTYPE")
    private String cytype;

    @ApiModelProperty(value = "详情路径")
    @TableField("CYURL")
    private String cyurl;

    @ApiModelProperty(value = "用户staffID")
    @TableField("CYSTAFFID")
    private String cyStaffid;

    @ApiModelProperty(value = "taskId")
    @TableField("TASKID")
    private String taskid;

    @ApiModelProperty(value = "BUSINESSKEY")
    @TableField("BUSINESSKEY")
    private String businesskey;

    @ApiModelProperty(value = "DEFINITIONID")
    @TableField("DEFINITIONID")
    private String definitionid;
    @Transient
    private Integer contractstatus;
    @Transient
    private String recordtype;

    public final static String TYPE_JHSP = "计划审批";
    //public final static String URL_JHSP = "/nbsj/jhgl/to_tjsp_info?formid=";//标识计划详情路径
    public final static String URL_JHSP = "/nbsj/jhgl/to_tjspPlan_info?planid=";//标识计划详情路径
    public final static String TYPE_XMSP = "项目审批";
    public final static String URL_XMSP = "/nbsj/xmgl/to_sp_info?spid=";//标识项目审批详情路径
    public final static String TYPE_TZGL = "投资管理";
    public final static String URL_TZGL = "/fxgl/tzfx/to_sptzgl_info?awid=";//标识投资管理审批详情路径
    public final static String TYPE_DGFH = "底稿复核";
    public final static String URL_DGFH = "/nbsj/sjss/to_sp_dggl?spid=";//标识项目审批详情路径
    public final static String TYPE_SSQRS = "事实确认书";
    public final static String URL_SSQRS = "/nbsj/sjss/to_sp_ssqrs?spid=";//标识事实确认书审批详情路径
    public final static String TYPE_SJTZS = "审计通知书";
    public final static String URL_SJTZS = "/nbsj/sjtzs/to_sp_sjtzs?spid=";//标识项目审批详情路径
    public final static String TYPE_SJBG = "审计报告";
    public final static String URL_SJBG = "/nbkz/sjbg/to_sp_sjbg?spid=";//标识项目审批详情路径
    public final static String TYPE_SJBGFH = "审计报告复核";
    public final static String URL_SJBGFH = "/nbkz/sjbg/to_sp_sjbg_fh?spid=";//标识审计报告复核
    public final static String TYPE_SJBGZQYJ = "审计报告征求意见";
    public final static String URL_SJBGZQYJ = "/nbkz/sjbg/to_sp_sjbg_zqyj?spid=";//标识审计报告征求意见


    public final static String STATE_FQ = "审批中";
    public final static String STATE_TZ = "需调整";
    public final static String STATE_ZZ = "已终止";
    public final static String STATE_TG = "已通过";
    public final static String STATE_ZD = "中断";
}
